Converting Dimensions of Points and Vectors
QuickDraw 3D provides routines that you can use to convert a point or vector of a given dimension to another dimension. When the given dimension is less than the result dimension, the last component is set to 1.0. When the given dimension is greater than the result dimension, each component in the result structure is set to its corresponding component in the given structure divided by the last component.
- IMPORTANT
- You must already have allocated space for the result structure before attempting to convert the dimension of a point or vector.
![]()
Subtopics
- Q3Point2D_To3D
- Q3Point3D_To4D
- Q3RationalPoint3D_To2D
- Q3RationalPoint4D_To3D
- Q3Vector2D_To3D
- Q3Vector3D_To2D